import 'package:flutter/material.dart';

class FlexLayoutRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Column(
      children: <Widget>[
        Flex(
          direction: Axis.horizontal,
          children: <Widget>[
            Expanded(
              flex: 1,
              child: Container(
                height: 150.0,
                color: Colors.purple[400],
              ),
            ),
            Expanded(
              flex: 2,
              child: Container(
                height: 62.0,
                color: Colors.pink[500],
              ),
            ),
          ],
        )
      ],
    );
  }
}
